var document=null;
if(args.nodeId!=undefined || args.nodeId!=null)
	document = search.findNode("workspace://SpacesStore/"+args.nodeId);
var result=null;
try
{	
	if(document!=null)
		result = document.createFolder(args.folderName);
	else
		result = companyhome.createFolder(args.folderName)	
}
catch(err)
{
	
}
model.result=result;
